﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using IHISCETeim.BLL;

namespace IHISCETeim.Web.MachineSys.UserModel.ExportExecl
{
    public partial class ExportExeclUClaimDemageItemCodeTongJiReport : UClaimDemageItemCodeTongJiReport
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.查看 };
            }
        }
        protected override string DWZRef
        {
            get
            {
                return "UClaimDemageItemCodeTongJiReport";
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            DataBind();
        }
      
        protected void DataBind()
        {
            DataTableCollection DTC = UClaimDemageController.GetItemCodeTongJiReport(stated.ToString("yyyy-MM-dd"), endd.ToString("yyyy-MM-dd"));
            this.rpMenu.DataSource = DTC[0];
            this.rpMenu.DataBind();
            SUMDT = DTC[1];

            this.ExportToExecl(string.Format("索赔件{0}年{1}月统计表", Year, Month), rpMenu);
        }

    }
}